/**
 * adm
 * training class
 */
package net.homeip.manizzz.model;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author adm
 *
 */
@Entity
@Table (name="ADVERTISEMENT")
public class Advertisement {
	private long id;
	private Calendar date;
	private Calendar editdate;
	private String title;
	private String text;
	private User user;
	
	
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue
	@Column(name="IDADVERTISEMENT")
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return the date
	 */
	@Column(name="DATE")
	public Calendar getDate() {
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(Calendar date) {
		this.date = date;
	}
	/**
	 * @return the title
	 */
	@Column(name="TITLE")
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the text
	 */
	@Column(name="TEXT")
	public String getText() {
		return text;
	}
	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}
	
	@Column(name="EDITDATE")
		/**
	 * @return the editdate
	 */
	public Calendar getEditdate() {
		return editdate;
	}
	/**
	 * @param editdate the editdate to set
	 */
	public void setEditdate(Calendar editdate) {
		this.editdate = editdate;
	}
	
	@Column(name="USER_IDUSER")
	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}
	/**
	 * @param user the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}

}
